import 'antd/dist/antd.css';
import {Route,Switch,Redirect} from 'react-router-dom';
import React, { Fragment } from 'react';
import Login from './models/pages/Login';
import Index from './models/pages/Index';
import Register from './models/pages/Register';

const App =(props)=>{
    return(
        <Fragment>
        <Switch>
            <Route path="/login" component={Login}  />
            <Route path="/index" component={Index}  />
            <Route path="/register" component={Register}  />
            <Redirect to="/login"/>
        </Switch>
        </Fragment>
    )
}

export default App;